*{
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-decoration: none;
}

.nav{
    width: 100%;
    height: 50px;
    background-color: rgb(4, 153, 16);
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

.nav > a,
.nav button{
    color: white;
    margin: 0 10px;
    font-size: 18px;
}

.nav button{
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.nav .dropdown{
    height: 100%;
    position: relative;
    display: flex;
}

.nav .dropdown .contents{
    display: none;
}

.nav .dropdown:hover .contents{
    display: flex;
    background-color: rgb(243, 241, 241);
    flex-direction: column;
    position: absolute;
    top: 50px;
    width: 120%;
    box-sizing: border-box;
}

.nav .contents a{
    padding-left: 10px;
    color: black;
    background-color: rgb(121, 253, 132);
    line-height: 30px;
}

.nav .contents a:hover{
    color: rgb(250, 4, 4);
    background-color: white;
}

.nav .icon{
    display: none;
}



@media screen and (max-width: 731px){
    .nav > a,
    .nav button{
        display: none;
    }

    .nav .icon{
        display: block;
        position: absolute;
        right: 0;
        text-align: center;
        width: 5% !important;
        top: 10px;
    }

    .nav.responsive > a{
        padding: 10px 0px;
    }

    .nav.responsive > a,
    .nav.responsive .dropdown{
        display: block;
        width: 100%;
    }

    .nav.responsive button{
        display: block;
    }

    .nav.responsive .contents a{
        line-height: 30px;
        padding-left: 20px;
    }

    .nav.responsive .contents a:hover{
        color: red;
        background-color: white;
    }

    .nav{
        flex-direction: column;
        height: 100%;
        min-height: 50px;
        align-items: flex-start;
    }

    .nav .dropdown:hover .contents{
        position: relative;
        width: 100%;
        top: 0;
    }
}